<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/static/js/jquery-3.7.1.min.js"></script>
</head>
<body>
    <div class="panel">
        <p>星期一</p>
        <p>星期二</p>
        <p>星期三</p>
        <p>星期四</p>
        <p>星期五</p>
    </div>
    <button id="up">上滑</button>
    <button id="down">下滑</button>
    <button id="toggle">切换</button>

    <script>
        $('#up').click(function(){
            $(".panel").slideUp(2000)
        })
        $('#down').click(function(){
            $('.panel').slideDown(2000)
        })
        $('#toggle').click(function(){
            $('.panel').slideToggle("slow")
        })
    </script>
</body>
</html>